<!DOCTYPE html>
<html lang="ch">
    <head>
        <meta charset="UTF-8">
        <title>New VQ</title>
        <link rel="shortcut icon" href="../../img/icon.jpg">

        <script src="https://unpkg.com/vue@3"></script>
        <!-- import CSS -->
        <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
        <!--图标-->
        <script src="//unpkg.com/@element-plus/icons-vue"></script>
        <!-- import JavaScript -->
        <script src="https://unpkg.com/element-plus"></script>

        <script src="../../res_js/axios-0.18.0.js"></script>
        <script src="../../res_js/jquery-3.7.0.min.js"></script>

        <link rel="stylesheet" href="../../index.css">
        <link rel="stylesheet" href="../index.css">
        <link rel="stylesheet" href="index.css">
        <script src="../../index.js"></script>
        <script src="../index.js"></script>
    </head>
    <body>
        <div id="app">
            <!--主体-->
<!--            <el-container>-->
<!--                &lt;!&ndash;标题栏&ndash;&gt;-->
<!--                <el-header>-->
<!--                    <el-menu-->
<!--                            :default-active="activeIndex"-->
<!--                            class="el-menu-demo"-->
<!--                            mode="horizontal"-->
<!--                            :ellipsis="false"-->
<!--                            @select="handleSelect">-->
<!--                        <el-menu-item style="font-size: 30px">New VQ</el-menu-item>-->
<!--                        <el-menu-item style="backdrop-filter: blur(10px)" index="1" onclick="window.location.href='/PC/home/index.html'">主页</el-menu-item>-->
<!--                        <el-menu-item index="2" onclick="window.location.href='/PC/friend/index.html'">好友</el-menu-item>-->
<!--                        <el-menu-item index="3" onclick="window.location.href='/PC/sala/index.html'">大厅</el-menu-item>-->
<!--                        <div class="flex-grow"></div>-->
<!--                        <el-menu-item index="4" onclick="window.location.href='/PC/search/index.html'">-->
<!--                            <el-icon><Search></Search></el-icon>搜素&ensp;-->
<!--                        </el-menu-item>-->
<!--                        <el-menu-item index="5" onclick="window.location.href='/PC/userCenter/index.html'">用户中心</el-menu-item>-->
<!--                        <el-sub-menu index="6">-->
<!--                            <template #title><el-avatar src="/img/HeadSculpture.jpg" fit="cover"></el-avatar>&emsp;{{myUser.username}}</template>-->
<!--                            <el-menu-item index="6-0">消息中心</el-menu-item>-->
<!--                            <el-menu-item index="6-1">修改头像</el-menu-item>-->
<!--                            <el-menu-item index="6-2">修改名称</el-menu-item>-->
<!--                            <el-menu-item index="6-3">修改密码</el-menu-item>-->
<!--                            <el-menu-item index="6-4"><el-link href="https://wwp.lanzoup.com/iEC150pka3la" target="_blank">下载客户端</el-link></el-menu-item>-->
<!--                            <el-menu-item index="6-5" @click="exitAccount">退出账号</el-menu-item>-->
<!--                        </el-sub-menu>-->
<!--                    </el-menu>-->
<!--                </el-header>-->
<!--                &lt;!&ndash;内容&ndash;&gt;-->
<!--                <el-main  style="height: 100vh; overflow: auto;">-->
<!--                    <img :src="homeP_src" alt="主页背景图" style="width: 100%;">-->
<!--                    <div style="height: 100px; width: 100%;">陕ICP备2023014750号-1</div>-->
<!--                </el-main>-->
<!--            </el-container>-->
            <div class="header-back"></div>
            <div class="header">
                <div class="header-tag" onclick="window.location.href='/PC/home/index.html'">New VQ</div>
                <div class="header-tag" onclick="window.location.href='/PC/home/index.html'">主页</div>
                <div class="header-tag" onclick="window.location.href='/PC/friend/index.html'">好友</div>
                <div class="header-tag" onclick="window.location.href='/PC/sala/index.html'">大厅</div>
                <el-dropdown class="header-tag-right">
                    <span class="el-dropdown-link" style="outline: none">
                        <img src="/img/HeadSculpture.jpg" style="float: left; margin-top: 5px; height: 40px; border-radius: 20px" alt="">
                        <span style="float: left; margin-left: 10px">{{myUser.username}}</span>
                    </span>
                    <template #dropdown>
                        <el-dropdown-menu>
                            <el-dropdown-item @click="this.msgCenterDrawer = true">消息中心</el-dropdown-item>
                            <el-dropdown-item @click="this.modifyUsernameDialog = true;">修改名称</el-dropdown-item>
                            <el-dropdown-item @click="this.modifyPasswordDialog = true;">修改密码</el-dropdown-item>
                            <el-dropdown-item @click=""><el-link href="https://wwp.lanzoup.com/iEC150pka3la" target="_blank">下载客户端</el-link></el-dropdown-item>
                            <el-dropdown-item @click="exitAccount">退出登录</el-dropdown-item>
                        </el-dropdown-menu>
                    </template>
                </el-dropdown>
                <div class="header-tag-right" onclick="window.location.href='/PC/userCenter/index.html'">用户中心</div>
                <div class="header-tag-right" onclick="window.location.href='/PC/search/index.html'">搜索</div>
            </div>
            <div class="main">
                <img :src="homeP_src" alt="主页背景图" style="width: 100%; float: left;">
            </div>
            <div class="base">
                <table style="width: 900px; margin: 0 auto; color: black">
                    <tr>
                        <td>地址：陕西省西安市</td>
                        <td style="text-align: right">问题反馈 | 加入我们 | 隐私政策</td>
                    </tr>
                </table>
                <table style="width: 900px; margin: 0 auto; text-align: center; color: #8c939d; font-weight: 1; font-size: 15px">
                    <tr>
                        <td style="width: 33%; text-align: left">红珊瑚</td>
                        <td style="width: 33%"><a href="https://beian.miit.gov.cn/" target="_black" style="color: #8c939d; font-weight: 1; font-size: 15px; text-decoration:none;">陕ICP备2023014750号-1</a></td>
                        <td style="width: 33%; text-align: right">{{TITLE}} {{VERSION}}</td>
                    </tr>
                </table>
            </div>

            <!--登录注册-->
            <el-dialog
                    title="登陆注册"
                    v-model="logInDialog"
                    width="30%"
                    :before-close="handleClose"
                    align-center
                    center>
                <el-tabs v-model="activeName" @tab-click="handleClick">
                    <!--登录-->
                    <el-tab-pane label="登录" name="1">
                        <el-form ref="form" :model="logInForm" label-width="80px">
                            <el-form-item label="账号">
                                <el-input v-model="logInForm.account"></el-input>
                            </el-form-item>
                            <el-form-item label="密码">
                                <el-input type="password" v-model="logInForm.password"></el-input>
                            </el-form-item>
                            <el-form-item>
                                <el-button type="primary" @click="logIn">登 录</el-button>
                                <el-button @click="logInDialog = false">取 消</el-button>
                            </el-form-item>
                        </el-form>
                    </el-tab-pane>
                    <!--注册-->
                    <el-tab-pane label="注册" name="2">
                        <el-form ref="form" :model="registerForm" label-width="80px">
                            <el-form-item label="电子邮箱">
                                <el-input v-model="registerForm.email"></el-input>
                            </el-form-item>
                            <el-form-item label="验证码">
                                <el-input style="width: 70%" v-model="registerForm.captcha"></el-input>
                                <el-button style="width: 25%; margin-left: 5%" type="primary" :disabled="sendCaptchaBtnDis"  @click="sendCaptcha('register', registerForm.email)" round>{{sendCaptchaBtnValue}}</el-button>
                            </el-form-item>
                            <el-form-item label="用户名">
                                <el-input v-model="registerForm.username"></el-input>
                            </el-form-item>
                            <el-form-item label="密码">
                                <el-input type="password" placeholder="长度需要在6-20位之内，且须含有字母和数字" v-model="registerForm.password1"></el-input>
                            </el-form-item>
                            <el-form-item label="确认密码">
                                <el-input type="password" placeholder="长度需要在6-20位之内，且须含有字母和数字" v-model="registerForm.password2"></el-input>
                            </el-form-item>
                            <el-form-item>
                                <el-button type="primary" @click="register">注 册</el-button>
                                <el-button @click="logInDialog = false">取 消</el-button>
                            </el-form-item>
                        </el-form>
                    </el-tab-pane>
                    <!--忘记密码-->
                    <el-tab-pane label="忘记密码" name="3">
                        <el-form ref="form" :model="forgotPasswordForm" label-width="80px">
                            <el-form-item label="电子邮箱">
                                <el-input v-model="forgotPasswordForm.email"></el-input>
                            </el-form-item>
                            <el-form-item label="验证码">
                                <el-input style="width: 70%" v-model="forgotPasswordForm.captcha"></el-input>
                                <el-button style="width: 25%; margin-left: 5%" type="primary" :disabled="sendCaptchaBtnDis"  @click="sendCaptcha('forgotPassword', forgotPasswordForm.email)" round>{{sendCaptchaBtnValue}}</el-button>
                            </el-form-item>
                            <el-form-item label="密码">
                                <el-input type="password" placeholder="长度需要在6-20位之内，且须含有字母和数字" v-model="forgotPasswordForm.password1"></el-input>
                            </el-form-item>
                            <el-form-item label="确认密码">
                                <el-input type="password" placeholder="长度需要在6-20位之内，且须含有字母和数字" v-model="forgotPasswordForm.password2"></el-input>
                            </el-form-item>
                            <el-form-item>
                                <el-button type="primary" @click="forgotPassword()">忘 记</el-button>
                                <el-button @click="logInDialog = false">取 消</el-button>
                            </el-form-item>
                        </el-form>
                    </el-tab-pane>
                </el-tabs>
            </el-dialog>
            <!--修改名称-->
            <el-dialog
                    title="修改名称"
                    v-model="modifyUsernameDialog"
                    width="30%"
                    :before-close="handleClose"
                    align-center>
                <el-form ref="modifyUsernameForm" :model="modifyUsernameForm" label-width="80px">
                    <el-form-item label="账号">
                        <el-input v-model="modifyUsernameForm.account"></el-input>
                    </el-form-item>
                    <el-form-item label="密码">
                        <el-input type="password" v-model="modifyUsernameForm.password"></el-input>
                    </el-form-item>
                    <el-form-item label="新名称">
                        <el-input v-model="modifyUsernameForm.newUsername"></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-button type="primary" @click="ackModifyUsername">修改</el-button>
                        <el-button @click="modifyUsernameDialog = false">取消</el-button>
                    </el-form-item>
                </el-form>
            </el-dialog>
            <!--修改密码-->
            <el-dialog
                    title="修改密码"
                    v-model="modifyPasswordDialog"
                    width="30%"
                    :before-close="handleClose"
                    align-center>
                <el-form ref="modifyPasswordForm" :model="modifyPasswordForm" label-width="80px">
                    <el-form-item label="旧密码">
                        <el-input type="password" v-model="modifyPasswordForm.oldPassword"></el-input>
                    </el-form-item>
                    <el-form-item label="新密码">
                        <el-input type="password" placeholder="长度需要在6-20位之内，且须含有字母和数字" v-model="modifyPasswordForm.newPassword1"></el-input>
                    </el-form-item>
                    <el-form-item label="确认密码">
                        <el-input type="password" placeholder="长度需要在6-20位之内，且须含有字母和数字" v-model="modifyPasswordForm.newPassword2"></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-button type="primary" @click="ackModifyPassword">修改</el-button>
                        <el-button @click="modifyPasswordDialog = false">取消</el-button>
                    </el-form-item>
                </el-form>
            </el-dialog>
            <!--消息中心-->
            <el-drawer
                    title="消息中心"
                    v-model="msgCenterDrawer"
                    direction="rtl">
                <div style="width:100%; height: 80%; overflow: auto">
                    <el-card style="margin: 2%" shadow="hover">
                        欢迎使用VQ0.8.1测试版
                        <!--分割线-->
                        <el-divider></el-divider>
                        本次更新：
                        <ol>
                            <li>更新动态和大厅UI及其交互。</li>
                            <li>修复发布动态按钮不显示的问题。</li>
                        </ol>
                    </el-card>
                </div>
            </el-drawer>
        </div>

        <script src="index.js"></script>
    </body>
</html>